package com.scrx.ymg.service.product;

import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.scrx.ymg.entity.AgentSuperMarketSet;
import com.scrx.ymg.entity.HeadEntrepot;
import com.scrx.ymg.entity.SuperMarketEntrepot;
import com.scrx.ymg.entity.SupermarketSet;

public interface IProductService {
	
	/**
	 * 录入商品到总部仓库
	 * @param entrepot
	 * @return
	 */
	public String save(HeadEntrepot entrepot);
    
	/**
	 * 录入商品到总部仓库
	 * @param head
	 * @param file
	 */
	public String save(HeadEntrepot head, MultipartFile file,MultipartFile bigFile,MultipartFile detailFile);
	
	/**
     * 根据条件查询总部仓库
     * @param head
     * @return
     */
	public Map<Object, Object> selectByCondition(HeadEntrepot head,int pageNum,int pageCount);
	
	/**
     * 根据条件查询超市仓库
     * @param head
     * @return
     */
	public Map<Object, Object> selectByCondition(SuperMarketEntrepot head,int pageNum,int pageCount);
    
	/**
	 * 超市上架
	 * @param superEnterpot
	 * @param headID
	 * @return
	 */
	public String putaway(SuperMarketEntrepot superEnterpot, int headID);
	/**
	 * 更新或者新建超市详情设置
	 * @param sueprset
	 * @return
	 */
	public String saveorupdateSupermarketSet(AgentSuperMarketSet sueprset);
	
	public String updateSupermarketSet(SupermarketSet sueprset);
    
	/**
	 * 更新超市商品
	 * @param supermarket
	 * @return
	 */
	public String updateSuperMarketEntrepot(SuperMarketEntrepot supermarket);
	
    
	/**
	 * 删除超市商品
	 * @param supermarket
	 * @return
	 */
	public String deleteSuperMarketEntrepot(SuperMarketEntrepot supermarket);



    public SupermarketSet getSupermarketSet(int superID);
    
    /**
     * 根据id查询总部商品
     * @param head
     * @return
     */
    public HeadEntrepot updateSuperMarketEntrepot(int headId);

    /**
     * 修改总部仓库商品
     * @param head
     * @param file
     * @return
     */
	public String updateHeadProduct(HeadEntrepot head, MultipartFile file,MultipartFile bigFile,MultipartFile detailFile);

}
